<div class="window">
  <button class="lucky-radius--big add" (click)="addTable = true">
    添加表
  </button>
  <table>
    <tr>
      <th>
        编号
      </th>
      <th>
        标题
      </th>
      <th>
        数据量
      </th>
      <th>
        操作
      </th>
    </tr>
    <tr *ngFor="let table of tableInfoList; let i = index">
      <td>{{ i + 1 }} - {{ table.id }}</td>
      <td>{{ table.title }}</td>
      <td>{{ table.dataCount }}</td>
      <td>
        <a [routerLink]="'/front/' + table.id">立即使用</a>
        &nbsp;&nbsp;
        <a (click)="deleteTable(table, i)" routerLink="/user">删除该表</a>
      </td>
    </tr>
  </table>
</div>
<app-add-lucky-table
  class="add-table lucky-shadow--light lucky-radius--big"
  *ngIf="addTable"
  (closeEvent)="closeAddTable()"
></app-add-lucky-table>
